
from rest_framework.viewsets import ModelViewSet
from goods.models import SPUSpecification
from . import spec_serializers
from meiduo_admin.my_paginate import MyPageNumberPagination

#1.spec 信息
class SpecViewSet(ModelViewSet):
    pagination_class=MyPageNumberPagination
    serializer_class = spec_serializers.SpecViewSetSerializer
    queryset = SPUSpecification.objects.all()